﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000BA3 RID: 2979
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MonopolyGetRaffleTicketScRsp : IMessage<MonopolyGetRaffleTicketScRsp>, IMessage, IEquatable<MonopolyGetRaffleTicketScRsp>, IDeepCloneable<MonopolyGetRaffleTicketScRsp>, IBufferMessage
	{
		// Token: 0x17002593 RID: 9619
		// (get) Token: 0x06008546 RID: 34118 RVA: 0x00162DF7 File Offset: 0x00160FF7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MonopolyGetRaffleTicketScRsp> Parser
		{
			get
			{
				return MonopolyGetRaffleTicketScRsp._parser;
			}
		}

		// Token: 0x17002594 RID: 9620
		// (get) Token: 0x06008547 RID: 34119 RVA: 0x00162DFE File Offset: 0x00160FFE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MonopolyGetRaffleTicketScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002595 RID: 9621
		// (get) Token: 0x06008548 RID: 34120 RVA: 0x00162E10 File Offset: 0x00161010
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MonopolyGetRaffleTicketScRsp.Descriptor;
			}
		}

		// Token: 0x06008549 RID: 34121 RVA: 0x00162E17 File Offset: 0x00161017
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MonopolyGetRaffleTicketScRsp()
		{
		}

		// Token: 0x0600854A RID: 34122 RVA: 0x00162E2C File Offset: 0x0016102C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MonopolyGetRaffleTicketScRsp(MonopolyGetRaffleTicketScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.poolId_ = other.poolId_;
			this.gEDFJBEFKPI_ = other.gEDFJBEFKPI_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600854B RID: 34123 RVA: 0x00162E79 File Offset: 0x00161079
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MonopolyGetRaffleTicketScRsp Clone()
		{
			return new MonopolyGetRaffleTicketScRsp(this);
		}

		// Token: 0x17002596 RID: 9622
		// (get) Token: 0x0600854C RID: 34124 RVA: 0x00162E81 File Offset: 0x00161081
		// (set) Token: 0x0600854D RID: 34125 RVA: 0x00162E89 File Offset: 0x00161089
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17002597 RID: 9623
		// (get) Token: 0x0600854E RID: 34126 RVA: 0x00162E92 File Offset: 0x00161092
		// (set) Token: 0x0600854F RID: 34127 RVA: 0x00162E9A File Offset: 0x0016109A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PoolId
		{
			get
			{
				return this.poolId_;
			}
			set
			{
				this.poolId_ = value;
			}
		}

		// Token: 0x17002598 RID: 9624
		// (get) Token: 0x06008550 RID: 34128 RVA: 0x00162EA3 File Offset: 0x001610A3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<BJOHNJOJPOO> GEDFJBEFKPI
		{
			get
			{
				return this.gEDFJBEFKPI_;
			}
		}

		// Token: 0x06008551 RID: 34129 RVA: 0x00162EAB File Offset: 0x001610AB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MonopolyGetRaffleTicketScRsp);
		}

		// Token: 0x06008552 RID: 34130 RVA: 0x00162EBC File Offset: 0x001610BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MonopolyGetRaffleTicketScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.PoolId == other.PoolId && this.gEDFJBEFKPI_.Equals(other.gEDFJBEFKPI_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06008553 RID: 34131 RVA: 0x00162F1C File Offset: 0x0016111C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.PoolId != 0U)
			{
				num ^= this.PoolId.GetHashCode();
			}
			num ^= this.gEDFJBEFKPI_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06008554 RID: 34132 RVA: 0x00162F82 File Offset: 0x00161182
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06008555 RID: 34133 RVA: 0x00162F8A File Offset: 0x0016118A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06008556 RID: 34134 RVA: 0x00162F94 File Offset: 0x00161194
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.PoolId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.PoolId);
			}
			this.gEDFJBEFKPI_.WriteTo(ref output, MonopolyGetRaffleTicketScRsp._repeated_gEDFJBEFKPI_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06008557 RID: 34135 RVA: 0x00163000 File Offset: 0x00161200
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.PoolId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PoolId);
			}
			num += this.gEDFJBEFKPI_.CalculateSize(MonopolyGetRaffleTicketScRsp._repeated_gEDFJBEFKPI_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06008558 RID: 34136 RVA: 0x0016306C File Offset: 0x0016126C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MonopolyGetRaffleTicketScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.PoolId != 0U)
			{
				this.PoolId = other.PoolId;
			}
			this.gEDFJBEFKPI_.Add(other.gEDFJBEFKPI_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06008559 RID: 34137 RVA: 0x001630CD File Offset: 0x001612CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600855A RID: 34138 RVA: 0x001630D8 File Offset: 0x001612D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 64U)
				{
					if (num != 74U)
					{
						if (num != 88U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						this.gEDFJBEFKPI_.AddEntriesFrom(ref input, MonopolyGetRaffleTicketScRsp._repeated_gEDFJBEFKPI_codec);
					}
				}
				else
				{
					this.PoolId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040032E3 RID: 13027
		private static readonly MessageParser<MonopolyGetRaffleTicketScRsp> _parser = new MessageParser<MonopolyGetRaffleTicketScRsp>(() => new MonopolyGetRaffleTicketScRsp());

		// Token: 0x040032E4 RID: 13028
		private UnknownFieldSet _unknownFields;

		// Token: 0x040032E5 RID: 13029
		public const int RetcodeFieldNumber = 11;

		// Token: 0x040032E6 RID: 13030
		private uint retcode_;

		// Token: 0x040032E7 RID: 13031
		public const int PoolIdFieldNumber = 8;

		// Token: 0x040032E8 RID: 13032
		private uint poolId_;

		// Token: 0x040032E9 RID: 13033
		public const int GEDFJBEFKPIFieldNumber = 9;

		// Token: 0x040032EA RID: 13034
		private static readonly FieldCodec<BJOHNJOJPOO> _repeated_gEDFJBEFKPI_codec = FieldCodec.ForMessage<BJOHNJOJPOO>(74U, BJOHNJOJPOO.Parser);

		// Token: 0x040032EB RID: 13035
		private readonly RepeatedField<BJOHNJOJPOO> gEDFJBEFKPI_ = new RepeatedField<BJOHNJOJPOO>();
	}
}
